/**
 * 判断是否是ios
 * @returns {boolean}
 */
const isIos = () => {
  return /(iPhone|iPad|iPod|iOS)/i.test(navigator.userAgent)
}

/**
 * 判断当前设置是否是安卓
 */
const isAndroid = () => {
  const u = window.navigator.userAgent
  return u.indexOf('Android') > -1 || u.indexOf('Adr') > -1
}

export { isAndroid, isIos }
